/* @(#)GSProviderBean.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-11    新增
 *   Jenny Li     2006-3-7   添加是否交易平台供应商字段
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * 供应商信息
 */
public class GSProviderBean implements GSBaseBean {
    
	/**
     * 
     */
    private static final long serialVersionUID = 1L;
    /**
     * 供应商ID
     * */
    private String id;
    /**
	 * 供应商编号
	 */
    private String gs_provider_id;
    /**
     * 供应商全称
     */
    private String gs_provider_name;
    /**
    *  供应商简称
    */
    private String gs_provider_shortname;
    /**
     * 供应商英文名称
     */
    private String gs_provider_engname;
    /**
     * 公司性质
     */
    private String gs_corp_property;
    /**
     * 经营地址
     */
    private String gs_corp_addr;
    /**
     * 邮政编码
     */
    private String gs_corp_post;
    /**
     * 负责人
     */
    private String gs_principal_id;
    /**
     * 负责人联系电话
     */
    private String gs_principal_phone;
    /**
     * 联系人
     */
    private String gs_contact_id;
    /**
     * 联系人电话
     */
    private String gs_contact_phone;
    /**
     * 所属国家
     */
    private String gs_reside_country;
    /**
     * 所属省份
     */
    private String gs_reside_province;
    /**
     * 所属城市
     */
    private String gs_reside_city;
    /**
     * 主营行业
     */
    private String gs_work_trade;
    /**
     * 主营产品
     */
    private String gs_work_manufacture;
    /**
     * 经营范围
     */
    private String gs_work_scope;
    /**
     * 信誉等级
     */
    private String gs_credit_level;
    /**
     * 是否交易平台供应商
     */
    private String gs_is_tradeflat_provider;
    /**
     * 是否有效
     */
    private String gs_validity;
    private String create_user_id;
    private String create_user;
    private String create_time;
    private String last_update_user_id;
    private String last_update_user;
    private String last_update_time;

    

    
    /**
     * @return 返回变量gs_is_tradeflat_provider的值.
     */
    public String getGs_is_tradeflat_provider() {
        return this.gs_is_tradeflat_provider;
    }


    /**
     * @param aGs_is_tradeflat_provider 设定变量gs_is_tradeflat_provider的值.
     */
    public void setGs_is_tradeflat_provider(String aGs_is_tradeflat_provider) {
        this.gs_is_tradeflat_provider = aGs_is_tradeflat_provider;
    }


    /**
     * 返回gs_contact_id.
     */
    public String getGs_contact_id() {
        return this.gs_contact_id;
    }


    /**
     * @param aGs_contact_id     赋值给gs_contact_id.
     */
    public void setGs_contact_id(String aGs_contact_id) {
        this.gs_contact_id = aGs_contact_id;
    }


    /**
     * 返回gs_contact_phone.
     */
    public String getGs_contact_phone() {
        return this.gs_contact_phone;
    }


    /**
     * @param aGs_contact_phone     赋值给gs_contact_phone.
     */
    public void setGs_contact_phone(String aGs_contact_phone) {
        this.gs_contact_phone = aGs_contact_phone;
    }


    /**
     * 返回gs_corp_addr.
     */
    public String getGs_corp_addr() {
        return this.gs_corp_addr;
    }


    /**
     * @param aGs_corp_addr     赋值给gs_corp_addr.
     */
    public void setGs_corp_addr(String aGs_corp_addr) {
        this.gs_corp_addr = aGs_corp_addr;
    }


    /**
     * 返回gs_corp_post.
     */
    public String getGs_corp_post() {
        return this.gs_corp_post;
    }


    /**
     * @param aGs_corp_post     赋值给gs_corp_post.
     */
    public void setGs_corp_post(String aGs_corp_post) {
        this.gs_corp_post = aGs_corp_post;
    }


    /**
     * 返回gs_corp_property.
     */
    public String getGs_corp_property() {
        return this.gs_corp_property;
    }


    /**
     * @param aGs_corp_property     赋值给gs_corp_property.
     */
    public void setGs_corp_property(String aGs_corp_property) {
        this.gs_corp_property = aGs_corp_property;
    }


    /**
     * 返回gs_credit_level.
     */
    public String getGs_credit_level() {
        return this.gs_credit_level;
    }


    /**
     * @param aGs_credit_level     赋值给gs_credit_level.
     */
    public void setGs_credit_level(String aGs_credit_level) {
        this.gs_credit_level = aGs_credit_level;
    }


    /**
     * 返回gs_principal_id.
     */
    public String getGs_principal_id() {
        return this.gs_principal_id;
    }


    /**
     * @param aGs_principal_id     赋值给gs_principal_id.
     */
    public void setGs_principal_id(String aGs_principal_id) {
        this.gs_principal_id = aGs_principal_id;
    }


    /**
     * 返回gs_principal_phone.
     */
    public String getGs_principal_phone() {
        return this.gs_principal_phone;
    }


    /**
     * @param aGs_principal_phone     赋值给gs_principal_phone.
     */
    public void setGs_principal_phone(String aGs_principal_phone) {
        this.gs_principal_phone = aGs_principal_phone;
    }


    /**
     * 返回gs_provider_engname.
     */
    public String getGs_provider_engname() {
        return this.gs_provider_engname;
    }


    /**
     * @param aGs_provider_engname     赋值给gs_provider_engname.
     */
    public void setGs_provider_engname(String aGs_provider_engname) {
        this.gs_provider_engname = aGs_provider_engname;
    }


    /**
     * 返回gs_provider_id.
     */
    public String getGs_provider_id() {
        return this.gs_provider_id;
    }


    /**
     * @param aGs_provider_id     赋值给gs_provider_id.
     */
    public void setGs_provider_id(String aGs_provider_id) {
        this.gs_provider_id = aGs_provider_id;
    }


    /**
     * 返回gs_provider_name.
     */
    public String getGs_provider_name() {
        return this.gs_provider_name;
    }


    /**
     * @param aGs_provider_name     赋值给gs_provider_name.
     */
    public void setGs_provider_name(String aGs_provider_name) {
        this.gs_provider_name = aGs_provider_name;
    }


    /**
     * 返回gs_provider_shortname.
     */
    public String getGs_provider_shortname() {
        return this.gs_provider_shortname;
    }


    /**
     * @param aGs_provider_shortname     赋值给gs_provider_shortname.
     */
    public void setGs_provider_shortname(String aGs_provider_shortname) {
        this.gs_provider_shortname = aGs_provider_shortname;
    }


    /**
     * 返回gs_reside_city.
     */
    public String getGs_reside_city() {
        return this.gs_reside_city;
    }


    /**
     * @param aGs_reside_city     赋值给gs_reside_city.
     */
    public void setGs_reside_city(String aGs_reside_city) {
        this.gs_reside_city = aGs_reside_city;
    }


    /**
     * 返回gs_reside_country.
     */
    public String getGs_reside_country() {
        return this.gs_reside_country;
    }


    /**
     * @param aGs_reside_country     赋值给gs_reside_country.
     */
    public void setGs_reside_country(String aGs_reside_country) {
        this.gs_reside_country = aGs_reside_country;
    }


    /**
     * 返回gs_reside_province.
     */
    public String getGs_reside_province() {
        return this.gs_reside_province;
    }


    /**
     * @param aGs_reside_province     赋值给gs_reside_province.
     */
    public void setGs_reside_province(String aGs_reside_province) {
        this.gs_reside_province = aGs_reside_province;
    }


    /**
     * 返回gs_work_manufacture.
     */
    public String getGs_work_manufacture() {
        return this.gs_work_manufacture;
    }


    /**
     * @param aGs_work_manufacture     赋值给gs_work_manufacture.
     */
    public void setGs_work_manufacture(String aGs_work_manufacture) {
        this.gs_work_manufacture = aGs_work_manufacture;
    }


    /**
     * 返回gs_work_scope.
     */
    public String getGs_work_scope() {
        return this.gs_work_scope;
    }


    /**
     * @param aGs_work_scope     赋值给gs_work_scope.
     */
    public void setGs_work_scope(String aGs_work_scope) {
        this.gs_work_scope = aGs_work_scope;
    }


    /**
     * 返回gs_work_trade.
     */
    public String getGs_work_trade() {
        return this.gs_work_trade;
    }


    /**
     * @param aGs_work_trade     赋值给gs_work_trade.
     */
    public void setGs_work_trade(String aGs_work_trade) {
        this.gs_work_trade = aGs_work_trade;
    }


    public Object process(ResultSet aResultSet) throws SQLException {
        GSProviderBean tGSProviderBean = new GSProviderBean();
        tGSProviderBean.id = aResultSet.getString("id").trim();
        tGSProviderBean.gs_provider_id = aResultSet.getString("code").trim();
        tGSProviderBean.gs_provider_shortname = aResultSet.getString("name").trim();
        tGSProviderBean.gs_provider_name = aResultSet.getString("full_name").trim();
        tGSProviderBean.gs_provider_engname = aResultSet.getString("eng_name")==null? "":aResultSet.getString("eng_name").trim();
        tGSProviderBean.gs_corp_property = aResultSet.getString("COM_PROPERTY").trim();
        tGSProviderBean.gs_corp_addr = aResultSet.getString("ADDRESS")== null? "":aResultSet.getString("ADDRESS").trim();
        tGSProviderBean.gs_corp_post = aResultSet.getString("ZIP_CODE")==null? "":aResultSet.getString("ZIP_CODE").trim();
        tGSProviderBean.gs_principal_id = aResultSet.getString("MANAGE_PERSON") == null? "":aResultSet.getString("MANAGE_PERSON").trim();
        tGSProviderBean.gs_principal_phone = aResultSet.getString("MANAGER_TEL") == null? "":aResultSet.getString("MANAGER_TEL").trim();
        tGSProviderBean.gs_contact_id = aResultSet.getString("LINK_PERSON")==null? "":aResultSet.getString("LINK_PERSON").trim();
        tGSProviderBean.gs_contact_phone = aResultSet.getString("LINK_TEL") == null? "":aResultSet.getString("LINK_TEL").trim();
        tGSProviderBean.gs_reside_city = aResultSet.getString("DISTRICT_CODE").trim();
        tGSProviderBean.gs_reside_country = aResultSet.getString("COUNTRY_CODE").trim();
        tGSProviderBean.gs_reside_province = aResultSet.getString("PROVINCE_CODE").trim();
        tGSProviderBean.gs_work_trade = aResultSet.getString("INDUSTRY") == null? "":aResultSet.getString("INDUSTRY").trim();
        tGSProviderBean.gs_work_scope = aResultSet.getString("SCOPE") == null? "":aResultSet.getString("SCOPE").trim();
        tGSProviderBean.gs_work_manufacture = aResultSet.getString("MAIN_RPODUCT") == null? "" : aResultSet.getString("MAIN_RPODUCT").trim();
        tGSProviderBean.gs_credit_level = aResultSet.getString("CREDIT_LEVEL") == null? "":aResultSet.getString("CREDIT_LEVEL").trim();
        tGSProviderBean.gs_is_tradeflat_provider = aResultSet.getString("IS_TRADEFLAT_PROVIDER");
        tGSProviderBean.create_user_id = aResultSet.getString("create_user_id");
        tGSProviderBean.create_user = aResultSet.getString("create_user");
        tGSProviderBean.create_time = aResultSet.getString("create_time");
        tGSProviderBean.last_update_user_id = aResultSet.getString("last_update_user_id");
        tGSProviderBean.last_update_user = aResultSet.getString("last_update_user");
        tGSProviderBean.last_update_time = aResultSet.getString("last_update_time");
        try{
        	tGSProviderBean.gs_validity = aResultSet.getString("STATUS");
        }catch(Exception e){
        	
        }
        return tGSProviderBean;
    }


	public String getGs_validity() {
		return gs_validity;
	}


	public void setGs_validity(String gs_validity) {
		this.gs_validity = gs_validity;
	}


    /**
     * @return the id
     */
    public String getId() {
        return this.id;
    }


    /**
     * @param aId the id to set
     */
    public void setId(String aId) {
        this.id = aId;
    }


    /**
     * @return the create_user_id
     */
    public String getCreate_user_id() {
        return this.create_user_id;
    }


    /**
     * @param aCreate_user_id the create_user_id to set
     */
    public void setCreate_user_id(String aCreate_user_id) {
        this.create_user_id = aCreate_user_id;
    }


    /**
     * @return the create_user
     */
    public String getCreate_user() {
        return this.create_user;
    }


    /**
     * @param aCreate_user the create_user to set
     */
    public void setCreate_user(String aCreate_user) {
        this.create_user = aCreate_user;
    }


    /**
     * @return the create_time
     */
    public String getCreate_time() {
        return this.create_time;
    }


    /**
     * @param aCreate_time the create_time to set
     */
    public void setCreate_time(String aCreate_time) {
        this.create_time = aCreate_time;
    }


    /**
     * @return the last_update_user_id
     */
    public String getLast_update_user_id() {
        return this.last_update_user_id;
    }


    /**
     * @param aLast_update_user_id the last_update_user_id to set
     */
    public void setLast_update_user_id(String aLast_update_user_id) {
        this.last_update_user_id = aLast_update_user_id;
    }


    /**
     * @return the last_update_user
     */
    public String getLast_update_user() {
        return this.last_update_user;
    }


    /**
     * @param aLast_update_user the last_update_user to set
     */
    public void setLast_update_user(String aLast_update_user) {
        this.last_update_user = aLast_update_user;
    }


    /**
     * @return the last_update_time
     */
    public String getLast_update_time() {
        return this.last_update_time;
    }


    /**
     * @param aLast_update_time the last_update_time to set
     */
    public void setLast_update_time(String aLast_update_time) {
        this.last_update_time = aLast_update_time;
    }
    
    private String is_audit;
    public String getIs_audit() {
    	return is_audit;
    }
    public void setIs_audit(String is_audit) {
    	this.is_audit = is_audit;
    }

}
